projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e938ef1
)
spl: reorder the assignment of board info to global data
author
Lokesh Vutla
<
[email protected]
>
Tue, 18 Apr 2017 11:57:23 +0000
(17:27 +0530)
committer
Tom Rini
<
[email protected]
>
Fri, 12 May 2017 02:03:41 +0000
(22:03 -0400)
Move the assignment of board info to global data a bit early which is
safe,
so that ram details can be used to enable caches.
Signed-off-by: Lokesh Vutla <
[email protected]
>
Signed-off-by: Ravi Babu <
[email protected]
>
Reviewed-by: Lukasz Majewski <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
common/spl/spl.c
patch
|
blob
|
history
diff --git
a/common/spl/spl.c
b/common/spl/spl.c
index 50828e6021812909c65aec01c1bc1d868ddf560d..8eea2f937a529d89ec4c991cf2060d725ac333a8 100644
(file)
--- a/
common/spl/spl.c
+++ b/
common/spl/spl.c
@@
-322,6
+322,7
@@
void board_init_r(gd_t *dummy1, ulong dummy2)
struct spl_image_info spl_image;
debug(">>spl:board_init_r()\n");
+ gd->bd = &bdata;
#if defined(CONFIG_SYS_SPL_MALLOC_START)
mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START,
@@
-385,7
+386,6
@@
void board_init_r(gd_t *dummy1, ulong dummy2)
*/
void preloader_console_init(void)
{
- gd->bd = &bdata;
gd->baudrate = CONFIG_BAUDRATE;
serial_init(); /* serial communications setup */